package com.example.myspringpro;

import com.example.myspringpro.util.ToolUtil;
import lombok.extern.slf4j.Slf4j;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

/**
 * @Description
 * @Author allenhu <huxiangneng@163.com>
 * @Date 2019/05/15
 * @Version V1.0.0
 **/
@RunWith(SpringRunner.class)
@SpringBootTest
@Slf4j
public class LoggerTest2 {

    @Test
    public void test() {
        String name = "xhn";
        String password = "123";
        log.info("name:"+name+",password:"+password);

        log.info("name:{}, password:{}", name, password);
    }

    @Test
    public void TestRandom() {
        System.out.println(ToolUtil.genUniqueKey());
    }
}
